package com.jingdianjichi.project.application.controller;

import com.jingdianjichi.project.infra.entity.UserInfo;
import com.jingdianjichi.project.infra.rpc.UserRpc;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * ClassName:TestFeignController
 * Package:com.jingdianjichi.subject.application.controller
 * Description:
 *
 * @Author fst
 * @Create 2025/1/4 17:18
 * @Version 1.0
 */
@RestController
@RequestMapping("/subject/category")
@Slf4j
public class TestFeignController
{
    @Resource
    private UserRpc userRpc;

    @GetMapping("testFeign")
    public void testFeign()
    {
        UserInfo userInfo=userRpc.getUserInfo("jichi");
        log.info("testFeign.userInfo:{}",userInfo);
    }

}
